package com.lambda;

import com.bean.Dog;
import com.service.MyFunc2;
import org.junit.Test;

/**
 * @description: 构造方法引用
 * @projectName:Lambda
 * @see:com.lambda
 * @author:LXC
 * @createTime:2024/4/15 12:29
 * @version:1.0
 */
public class ConstructorMethodDemo {

    @Test
    public void testConstructor(){
        MyFunc2 dog = Dog::new;
        Dog func = dog.func(21, 43);
        System.out.println(func.getWeight()+"----------------"+func.getHeight2());
    }
}
